package com.cwf.security.dao;

import com.cwf.security.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;


/**
 * (UserLogin)表数据库访问层
 *
 * @author makejava
 * @since 2023-02-04 10:19:22
 */
@Mapper
public interface LoginDao {

    /**
     * 通过用户名查询用户基本信息
     *
     * @param userName 用户名
     * @return 实例对象
     */
    @Select("select * from user_login\n" +
            "where user_name=#{userName}")
    User userDetails(String userName);



}

